package com.ebanca.drawme;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Receiver class that is notified by the boot event
 * and starts the background service of the BinC application. 
 */
public class BootReceiver extends BroadcastReceiver {
	
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
			Intent i = new Intent();
			i.setAction("com.sioux.binc.ForegroundService");
			context.startService(i);
		}
	}
}
